import 'package:backend.core/core/domain/entities/api/google_play/api_google_play_purchased_subscription_pause_info.dart';
import 'package:backend.core/core/domain/entities/google_play/google_play_purchased_subscription_info_pause_info.dart';

abstract class CreateApiGooglePlayPurchasedSubscriptionPauseInfoFromInternalOne {
  ApiGooglePlayPurchasedSubscriptionPauseInfo call({
    required GooglePlayPurchasedSubscriptionInfoPauseInfo pauseInfo,
  });
}

class CreateApiGooglePlayPurchasedSubscriptionPauseInfoFromInternalOneImpl
    implements CreateApiGooglePlayPurchasedSubscriptionPauseInfoFromInternalOne {
  const CreateApiGooglePlayPurchasedSubscriptionPauseInfoFromInternalOneImpl();

  @override
  ApiGooglePlayPurchasedSubscriptionPauseInfo call({
    required GooglePlayPurchasedSubscriptionInfoPauseInfo pauseInfo,
  }) {
    return ApiGooglePlayPurchasedSubscriptionPauseInfo(
      autoResumeTime: pauseInfo.autoResumeTime,
    );
  }
}
